'''
Created on 8 Nov 2014

@author: User
'''
from main.data import yahoo_api
from main.model.strategy import SmaStrategy;

def main():
    prices = yahoo_api.YahooAPI().downloadHistorical("yhoo", ys=2005);
    
    strat = SmaStrategy();
    strat.backTest(prices);
    strat.printEffectiveness();
    
 
    
main();
    